from rest_framework.response import Response
from rest_framework.views import APIView

from six_it.models import Recruit
from xiong_tao169.serializer.recruit_detail import FirstqiyeSerializer


class RecruitdetailkView(APIView):
    '''职位详情'''

    def get(self, reqeust, id):
        recruit = Recruit.objects.get(id=id)
        serializer = FirstqiyeSerializer(recruit)
        return Response(serializer.data)
